Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


outputting 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 Article


Discover 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 Article

Counting 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 Article

Most 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 Article


Powershell, 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 Article

powershell 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 Article

Question 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 Article


loop 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 Article


IP 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 Article

PSDrives 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 Article

Powershell - 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 Article

Synchronizing 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 Article


Aggregate 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 Article

Faster 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 Article


Remove 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 Article

need 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 Article


Poweshell 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 Article

PS 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 Article

Export 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
Browsing all 15028 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>