write events from matched query.
I know that I'm fundamentally missing something here but I am taking what I have constructed so far (in 1 day's time) and asking for assistance in figuring out how to take variables from a query and...
View ArticleForeach output from get-command, add menu item
HiI'm making a script to configure some basic settings for new servers, and one of the features in the script is to set ip-address on the network interface. At some servers there are several network...
View ArticleCan I run a cmdlet in the IF comparison instead of using a variable?
I'm writing a script to run a continuous Test-Connection ping through task scheduler. This script, upon a non-response, will write to a custom event log I've set up.Without writing a book, here's an...
View ArticleAD Module for Windows PowerShell - Insufficient Access Rights to perform the...
I have a recently upgraded domain that's now running all 2008R2 DCs. The domain functional level is 2008R2 and the forest functional level is 2003. I've also created a brand new lab domain with...
View ArticleCSV Comparison and Create CSV with Differences/Deltas
I have a powershell script that runs once per day that generates a csv file with a list of all mailbox users, and calendar access rights for thier mailbox. This csv contains 4 columnsA=Mailbox B=User...
View ArticleGet-Certificate cmdlet do not transmit credentials for authentication
Hello,I'm trying to use Get-Certificate cmdlet which supports -credential parameter. Whenever I use that parameter though I can not see credential being passed to remote machine, request comes as...
View ArticleTrying to add Domain Global group to a remort machine local group in the domain
Hi, This is rohit. I am currently trying to add domain global group (Desktopgr) to my local group (Localgr). Let me pricise this in more details: I had a machine 2008 server (LDAPCLIENT, ip...
View ArticleExtracting specific entries from vssadmin output
Powershell 2.0 I am looking to extract the Exchanges-specific entries from the output of running the "vssadmin list writers" command, which gives you the results for all the VSS writers on the system...
View ArticleStandardize on PowerShell 3.0
I would like to get suggestions on how to standardize on PowerShell 3.0. We have a mixture of PowerShell 2.0 and PowerShell 3.0 installed, and I would like for all of our servers to have version 3.0....
View ArticleHelp with figuring out commands for test!
These are study guide questions, I would appreciate any help!! What does the following PowerShell command do? PS C:> ls | Where-Object { $.PSIsContainer } | ForEach-Object { (ls $ | ? { -not...
View Articledelete file having a symbol
Hi,I need to DELETE file recursively with two scenarios:1. File extension having "!" (example: acct985.dtd!)2. Anywhere in full file name have "!" (example: acct658!.dtd)
View ArticleHelp modifying a powershell script
Hello,I have recently been given a task to write/find a script that is capable of performing Full and Incremental backups. I found a script that does exactly what I need, however, it requires user...
View ArticleLDAP authentication to another domain in Powershell 3.0
I am writing a script to map drives on domain B when the user is using a PC on domain A. The script works fine until I add validation to it. I am thinking the problem may be within the context of the...
View ArticleProblem when working with loaded registry hive
Hi All, I'm working on a project to copy some registry entries to the HKLM hive so they can be inventoried using SCCM. I've spent quite a bit of time trying to figure out the best way to do this, since...
View ArticleComparing different Get-ChildItem results
Hi Guys,Hopefully you can help me. I'm getting close but don't get the result I want.The idea is that is want to compare several locations (registry/filesystem) before and after.When I run Get-ChilItem...
View Article< operator is reserved for future use.
Hi all.I am trying to execute this command in Powershell with the above error.net share <U Drive>=<C>:<\test> /grant:<Administrator>,FULL /remark="Tester"This is only a test to...
View ArticleWhy do menu and text fonts render badly in PowerShell ISE?
I'm using PowerShell ISE on Windows 7 and also XP. The menu fonts and the text fonts in ISE are not rendered nice and clearly like every other application in the operating system. Does ISE use some...
View Articlepowershell restart-service on many computers
I need to remote restart a service on a bunch of machines. This command works great on a single machine: Restart-Service -InputObject $(Get-Service -Computer computer1 -Name service1);But I need to...
View ArticleCustom PowerShell Provider and Copy-Item between logical "file system" Providers
Hi, I am trying to write PowerShell provider for Skydrive, Dropbox and other file like files stores. Unfortunately, I am having trouble getting Copy-item to work from the local file system up to my...
View ArticleRemoving initial space from reversed string?
I cant figure this out. Powershell running in PowerGUII have names that can be like either below stored in a variable $aSMITH, JOHN A. or SMITH, JOHNThis almost works:...
View Article