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

Powershell Script to monitor registry changes

Hello,I would like to write a script which monitors a registry item and if it changed, it will change it back. i.e:HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable Value 0...

View Article


PS -- Turning on all PC's on our domain

Hi There,I need to create a powershell script to do the following things, I was just wondering whether anyone out there can help me1) I need to turn on all computers within our domain - Is there...

View Article


PS Script - Clearing through inactive local user accounts

Hi There,I need to create a Powershell script that I can run as a scheduled task, which removes any cached domain users that are over the age of 5 weeks on a clients machineOur infrastructure is still...

View Article

[HELP] Dynamic multi object and events creation

i´m trying to create objects and events based on a .xlsx file. my script need to teste connection with the computers listed on .xlsxMy script create a Tray Icon alert if any computer is off-line...

View Article

SUA Substem for Unix base application on Windows serveur 2012 r2

Hello  First, sorry for my bad english (i am french) I wanted to know if it's possible to install SUA Substem for Unix base application on Windows serveur 2012 r2 ? If yes ... How to do it please ? If...

View Article


Remove ACL on AD user Object

Hi all,for one project in my company, i have to add a deny acl on user object for an account service, it's ok, it's works with this PowerShell command : Add-ADPermission -Identity "my user" -User "my...

View Article

Image may be NSFW.
Clik here to view.

Adding Domain Users to Security Groups Using UserPrincipalNames From CSV

Hi,I am trying to build a script which will:1. Import a CSV. The CSV contains the following data: AD Groups and UserPrincipalNames2. UPNs from the UPN column in the CSV will be added to the AD Groups...

View Article

Powershell script not reporting errors?

Hey Guys,I have a shell script I use to process old AD accounts that involves the following:Set an expiry date Entering text into description field Removing membership to security/distribution groups...

View Article


send mail with attachment using vb script or batch file

HiI have windows 2003 DCs due to restriction on windows 2003 servers, I cannot use powershell to check Active directory replication.I am using below command to get output in batch file but not able to...

View Article


Powershell v3/v4 in Windows 10

Hi SGswhile there are tons of Q&As to run PSv2 in any OS, there's none I could find about (v3)/v4 in (win8.1)/win10.I recently upgraded to win10, which brought v5 with it. Any script that I write...

View Article

Strange issue with Powershell using up huge amounts of memory.

 I've got a very weird issue happening. I've got a Powershell script that Loads a list of servers from a CSV file then uses that with start-job to create a sub-thread for each server to monitor...

View Article

Is it possible to write a script to create a testfile on a virtual machine?

How can you make a Powershell script which allows you to create a test-/text file  on a virtual machine on Hyper-V?

View Article

How to manage the GPEDIT.msc activites inside batch script on a Windows Seven...

Hello, How to manage the GPEDIT.msc activites inside batch script on a Windows Seven 7 64 bits ? Activities are : build a script to be run at shutdown. Regards,

View Article


W7_64 : Batch Script : commands : xcopy and DIR : log say "success" but the...

Hello, I work on Windows 7 Pro 64 bitsI buid a script that make 3 things : 1 + xcopy a file (a other "batch.cmd" file) 2 + DIR 3 + write a log for the actions 1 and 2.The CMD window where the script is...

View Article

Reg query not working in Vbscript

Hi,I am to querying two registry path to get McAfee lastheckupdate value (i.e one is in 32bit and 64 bit windows version). The problem now is when I do a query like below it query only the first...

View Article


Registry "Wow6432Node" : is it for 32 or 64 bits session ?

Hello,Registry "Wow6432Node" : is it for 32or64 bits session ?Regards,

View Article

I want to build, with a batch script run through a 32 software, a local...

Hello, I want to build, with a batch script run through a 32 bits software, a local policy to run a script at shutdown, on Windows Seven 7 64 bits. How to do the job ? Regards,

View Article


Getting Control at Shutdown

I have some scripts I want run if the machine is about to shutdown. Is it possible to launch a task on shutdown that's executes a script? If so, how much time does it have?Ed

View Article

Help! Removing AD Group Membership for a list of AD User

I am trying to to remove 100+ users AD group membership, I have the samaccountname in a text file. I am getting an error. foreach ($user in (get-content c:\users.txt)){foreach ($g in (get-aduser...

View Article

Using vaultcmd To Create Web Credentials

Hi, I am trying to create a logon script for Windows 8.1 using vaultcmd for a few users that will populate web credentials. The command I'm using is formatted like this:vaultcmd /addcreds:"Web...

View Article
Browsing all 15028 articles
Browse latest View live


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