Powershell and WSUS - Get-WSUSClient - possible bug?
Tim here...I am attempting to write a script that looks at my Active Directory for specific OUs where I have Policies set to run Windows Updates. I have everything working as I would want. My issue is...
View ArticleProblem with Invoke-WebRequest
I'm trying to download files from an array into a specific folder but getting a Server error 404. Invoke-WebRequest : Server Error 404 - File or directory not found. The resource you are looking for...
View ArticleHelp with adding a string to an existing script
Guys, I would like to know what should i use to add a manager to a user in AD i have the below script that working just fine, i just want to add the manger filed as well. #Import ActiveDirectory module...
View ArticleNew-mailboxExportRequest and New-MailboxImportRequest in sequence
Hi.I need to export mail to .pst and when status -eq 'complete' then run import .pst to another mailbox. Does anybody know how to do this? Best Regards Trond Jenssen
View ArticleHow to run an .exe file (Install Wizard)
I've been thrown into Powershell knowing nothing about it and having to learn via the web alone, so please be kind. I'm putting together a script that will build a Windows 7 PC (SP 1 with just the...
View ArticleSQL to CSV Export - Row 1 is #TYPE System.Data.DataRow
I have the recordset coming out of a stored procedure but the first 2 rows says this: #TYPE System.Data.DataRow"Client ID","Client Name"I have tried using the...
View Articlemerge for out put
want to merge both scripts (i.e for uptime of all servers and and hostname and disk script for all servers)the out should be like ip address days hours mins sec...
View ArticleAd users export
Hi i wanted to export all AD users with there SAmaccount , fistname , last name with initials & email address in csv
View ArticleSCCM Pre-Install Apps using Powershell Script
Hi All,I am an SCCM Admin. We are Migrating from Windows XP to Windows 7. We have around 80% of apps in App-V and we are planning to install apps we in advance before the users get his machine.We are...
View ArticlePowershell Script to relocate User's Profile folder during Deprovision
Hi,I'm trying to write a script which, upon execution, move a user's profile folder from it's original location (in the \\server1\profile$ folder) into a sub folder in that location...
View ArticleCan't get the Invoke-WmiMethod to work
The HP Display LiteSaver utility came with my monitor and stated:HP Display LiteSaver installs a WMI Provider which creates a WMI object called Win32_DisplayPowerSaving in the root\CIMV2 namespace.The...
View ArticleExchange 2010 Search-Mailbox Issue
I am having a problem getting "Search-Mailbox -SearchQuery" to accept a variable.There are examples in the script on how to properly format the query (not shown here).The problem appears to be the...
View ArticleIn search of a way to identify workflows within a SharePoint site collection
We are running MOSS SharePoint 2007. There is a v1 install of PowerShell on the Windows 2003 server for the farm.There are several types of workflows within SharePoint 2007. There are the out of the...
View ArticleHow can I used Error Traping / Error Action with .NET type
HelloI wounder if someone can help me with the following question please.If I do the following[ System.IO.Directory]::EnumerateFiles("\\Server1\Directory1","*.ps1",AllDirectories)I get a list of files...
View Articlecopy file(s) to a Win32_USBControllerDevice ?
Hi there,I've got a tablet that is visible in windows explorer as a portable device and with explorer i can copy files to it. Unfortunately this tablet is not able to be visible as a drive with a...
View ArticleProblems with Prepare-MoveRequest.ps1
Hi guys,I am trying to execute Prepare-MoveRequests.ps1 in a powershell script and the command is not working properly. I store the command in a variable ($sCmd) and use invoke-expression $sCmd.It...
View ArticleHow to unlock
hi want to unlock sa in SQL 2012 , can u suggest how to do , i tried from powershell script but nothing happened
View ArticleSimple change of password?
I am writing a PowerShell script to build a Windows 7 PC (add user accounts, add user passwords, add our applications, turn on FTP Server, et al). One of the first things I need to do is change the...
View Article