Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 6937 articles
Browse latest View live

Cannot export certain attributes that ARE populated

Hi,Can anyone explain why when using QAD cmdlets I cannot eport certain attributes? eg, if I run the following Get-QADUser * -searchroot 'ou=users,dc=domain,dc=com' | select -property name,...

View Article


Management OData IIS Extension

Does anyone know of any documentation aside from the broken links on MSDN that link to dead VS projects?  I've spent too many hours looking for any documentation on exposing some custom modules via...

View Article


Help needed with running powershell iusing psexec

I am trying to call a powershell script using psexec which connects to remote systemSo from "Computer A" I call the batch file Aot.bat which is on "Computer B"Aot.bat has a line which calls the...

View Article

Used Disk Space

Hi Masters, I would like to get "remotely" more servers Disk infos as: Diskname,WholeDiskSize,FreeSpace,UsedDiskSpace.What I have done until now:function Get-FreeSpace {gwmi win32_volume -Filter...

View Article

Using PowerShell to parse TSM backup logs

Good afternoon.  I have written a script to evaluate and parse the event logs on several servers that use TSM (Tivoli Storage Manager).The script has worked for the most part right up to the new...

View Article


Simple PowerShell Backup Script

It's been a good run doing a post every day. I'm scaling it back a bit. I liked getting these 36 posts out one a week day for some time now. I'm going to scale back. I"m not sure yet if I'll go down to...

View Article

Office 365 PowerShell Tip – Keeping EmailAddress and UPN in Sync

UPN’s are a nice way for our users to remember their usernames.  A UPN essentially has the same format as an email address.  Rather than having users login to their workstations or intranet resources...

View Article

Modify Columns and Stored Procedures in PowerShell

How many times have you run into a case where your database design is "almost" right?  Maybe you're upgrading from an earlier version of SQL Server and want to take advantage of some new features after...

View Article


PowerShell for EAP-PEAP secured VPN on Windows 8.1

Simple VPN configurations can be deployed by Group Policy but EAP authentication settings cannot be configured like this, even using Windows 8.1 and Windows Server 2012 R2.Read More

View Article


Fetching all users from two different OU's in AD through powershell

Hi,In my ADUC there are two different OU's namely TestOU1 ans SampleOU1.These two OUs are seperate OU's.I want to fetch all the users present in both OU's through powershell command.I am very new to...

View Article

import users into AD

anyone, please help me on this script  the script ::: Import-Module ActiveDirectory  $TXT = Import-Txt -Delimiter "0100" -Path "$mybooks.txt" $AD = Get-ADUser -Filter * -SearchBase...

View Article

automation of emc (symcli commands)

If you are familiar with EMC solutions enabler (which provides DOS command-like commands) like symcfg list, which outputs a list of the emc storage arrays located in a particular site by firmware code...

View Article

Cannot update attribute

Hi Can anyone tell me whats wrong the following basic bit of code?It returns: cmdlet ForEach-Object at command pipeline position 1 supply values for the following parameters:Process[0]:$Users =...

View Article


Reinstall News app with powershell

The Metro or Modern apps in my Windows 8 stopped working when I upgraded to 8.1  Researching the problem I uninstalled the News app that comes with Widows. Then I tried to add it back. I only have a...

View Article

Quick Tip: Self signed certificates made easy with PowerShell!

Most solutions today require certificates in some way, which means we need them even when setting up a lab/test environment. If you for some reason don’t have a PKI/CA infrastructure in your lab...

View Article


PowerShell Team Publishes New Set of Desired State Configuration Resources

The PowerShell team released a new set of Desired Configuration State (DSC) resources, building blocks that allow the configuration of computer items. This resource kit was published to encourage the...

View Article

RDP and Network configuration verify script..

I have two script and i am trying to compile it to one. But while compiling these two i am not getting the expected output.   Remote network status verification  [cmdletbinding()]param (...

View Article


A few big questions

I have been tasked to create a powershell/sql solution for monitoring up to 50 servers for multiple perfmon counters and hitting WMI for metrics.  What would be the most efficient way to create this...

View Article

String manipulation

I execute this against a server param($serverName)$serverName = "BEAST"@(  "\\$serverName\PhysicalDisk(*)\Avg. Disk Read Queue Length",    "\\$serverName\PhysicalDisk(*)\Avg. Disk Write Queue Length",...

View Article

Remove-Item does not work (Permissions) but "cmd /c 'rd /s /q directory' "...

Hallo,I would like to delete a directory of a user with the powershell (I 've run it as administrator):PS C:\Users> Remove-Item DIRECTORY -Force -Recurse    + CategoryInfo          :...

View Article
Browsing all 6937 articles
Browse latest View live