WinRM - The CIM namespace Root/Microsoft/Windows/TaskScheduler is invalid.
Hey,I try to create a scheduledtask using powershell on Windows 7 SP1 machine.Command look like: $A = New-ScheduledTaskAction –Execute $Command $S = New-ScheduledTaskSettingsSet...
View Articleoutputting things
hiim writing a script (trying to) that will output success or failure based on a backup script for gpo dns, etc. I cant figure out what i would need to make this work. Esssentially i would like to...
View ArticleDiscover OS language and architecture of Windows 7 using command prompt
The problem: in a bat file a need make different think based on language an os architecture of windows 7 (are different setup program to be running).Something like this:IF OSLanguage = 1033 AND...
View ArticleCounting Exchange Transaction Logs
Trying to come up with a .ps1 that counts log files generated by Exchange (multiple DB's on multiple servers) on an as needed basis between backups. Input file is a .csv of the format:Server,DBName...
View ArticleMost effective way to export Widnwos Security Event Logs
There are many different ways to export the logs, VBScript, Powershell and many .exe standard tools like wevutil and others.I would like to schedule task to export the logs do a database and i´m...
View ArticlePowershell, Excel, Autofilter to Uncheck items in a large list.
Working with Powershell, and Excel, When you Filter a column and only want to (uncheck) one or two items from a column. So what i am looking for is this, the example below is if you are looking at an...
View Articlepowershell find .appref-ms file
hello, so I am trying to find *appref-ms files on a given machine. I am able to detect the files just fine on my own machine, but if I try to run it via a remote machine, my test path comes back false?...
View ArticleQuestion on how to loop through a variable amount of objects
I have a csv file which I am parsing with powershell and it works perfectly. I would like to speed it up. Currently, I call a line that is customized for each groups list of subnets.I have about 30...
View Articleloop going wrong or?? vb script
I have created a script to push message out to users.but it dosnt behave like i wish?the first line and last line is the samethe second line and the second line is the sameand the third first line and...
View ArticleIP array to IP range
Hi guys Learning Poweshell and stuck at which seems to be an easy task, but wrecking my brain on it for some time... I have a list of IP addresses in an array $ipArray. I need to go through this list...
View ArticlePSDrives in SCCM tasksequence
Can anyone think of a reason why a PSDrive would not work in an SCCM(MDT) tasksequence?In a TS for 2008 R2 I am trying to run a PS script to configure some RDS Host settings. This...
View ArticlePowershell - Daily disk and folder usage; trouble with code to loop through...
Hi,I'm very new to Powershell but through the help of this forum and the help on the internet I have scraped together a script that will loop through the disks of a set of servers listed in a text...
View ArticleSynchronizing User AD details to Contacts across Multiple Untrusted Domains
GreetingsWelcome to the complexity of governmental departments.My goal/requirement is to take User AD details from a domains and create AD Objects (contacts) for exchange to use.We are doing this at a...
View ArticleAggregate SP List Items in an array
I have a Sharepoint list that contains items in the following format:Site Plan Type Status CountAAA Manufacturing Started 1AAA Manufacturing Not...
View ArticleFaster way to read XML files using power shell !!
At the moment i have about 1000 XML files (ranging from size 15kb to 120kb), I have a powershell script which extracts information and writes all extracts to the same LOG file!!It works well but am...
View ArticleRemove all users in a txt file from 1 specific group.
Hi,Remove all users in a txt file from 1 specific group. I have the full names of users 1 per line in a txt file. When script run needs to check the txt file with user names and then remove each from...
View Articleneed a batch file to stop non-administrative shares
hello.i have some clients in which many shared folders exist. i need to stop all these non-administrative shares from bing sharedI need a batch file to read the output of "net share " Command and then...
View ArticlePoweshell copy-item cmdlet to subfolders problem
Hi All Extreme novice here guys, so please excuse my simple question, however, I've been working on some code which is working when copying from one folder to another. This code first checks to make...
View ArticlePS Difference v3 to v1 with $Commands1 = ForEach ($PIDArray in $PIDs) {...},...
I have this powershell script I have been running for some time that I have had to update to include functionality. It runs on a 2003x64 Server, but last time I updated it, it was done on XP machine,...
View ArticleExport all groups from AD including members and select group and user DN
Hi all,I'm trying to export all groups in AD, specifically the group DN and the user DN but I'm struggling to select the group DN:get-adgroup -filter * | get-adgroupmember | select distinguishedname |...
View Article