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

Get-Credential with smartcard and PIN

I write lots of scripts for automation.  Administrators here run as a low privilege account and elevate what they need to an administrative account.I want to be able to use Get-Credential in my scripts...

View Article


display results of the power shell commands

Dear all, first i am new to power shell so forgive any misunderstandingi have created the folowing power shell code that creates a  window with  buttons. Each of this buttons run power shell commands...

View Article


How do i create a directory in powershell

How do i create a directory in power shell

View Article

PowerShell - removing duplicates

Hello I have a script that queries AD for all users who's passwords expire shortly and notifies admin. Problem is, the notification I receive includes duplicate items so the same user several times. I...

View Article

List servers by site in AD

I have a script I am trying to run to list servers in a specific AD site. I am changing all of our DNS server info with a script, but need to break down our server list by site for the input file. I...

View Article


BATCH script - to download new files from ftp server

Hi, Everyday we need to download newly added files from FTP server to our local machine. I have already downloaded the files from FTP server. But i need the following in batch script1. Daily it need to...

View Article

Run VBS to change a HKLM value on client machines

    Hello to all, I need to build a .VBS script to change the "Hidden" value, located on the following registry path "HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters" on WinXP machines....

View Article

VBScript to sync computer properties with AD description

Hi all, I really hope you can help me out. I have been tasked at work with syncing the Computer Description field under System in the Control Panel with the Description field in Active Directory.I was...

View Article


AD Update Script

Hello,Currently our payroll system is the authority on a handful of the AD user properties.  I'm writing a script that will update these properties but we only want to write the update if its changed....

View Article


Script to get the status of a PW in 365

I have been doing a ton of research unfortunately I don't think this is possible. I am looking to see when a password expires for a specific account that is only in 365. It is not synced with AD so it...

View Article

Best practice for adding application to $env:Path in PowerShell?

I'm trying to figure out the best way to add a program to PS's path. When I look at $env:Path, I see tons of different entries pointing to various programs on the system that seem to have been added by...

View Article

Adding an array of custom objects to a higher level custom object

Ok, maybe I'm thinking too much like a C# programmer, but here's my issue.  I have a need to create a high level custom object, add some members, and then in a lower for loop create some custom...

View Article

Yet another Try Catch question. Iterating through a ForEach loop

Confused on error handling in a Powershell ForEach loop. I’m looping through a list of registry keys, attempting  to open each one. If it succeeds, I do a bunch of stuff. If it fails, I want to skip to...

View Article


VBScript - Help downloading jpg from allcdcovers and google (album art)

I am stuck. I have created a MP3 sorter that plays the mp3 and ask what folder you want to move the song to. that works fine.All my mp3's have embedded album art. I have spent weeks trying to figure...

View Article

Image may be NSFW.
Clik here to view.

Registry path for Automatic Updates in Windows 8

Hello,I have a requirement to uncheck the check box shown in image below. Is there any registry path that I can edit or any script to do the same.Thanks in advance. 

View Article


Get_User_Logon

I have been tasked to get user logon info (Last logon date & time, DC user Athuenticated to, & anything else is gravy). I need it to focus on using one DC (Not all DC's in the forest) and focus...

View Article

Get OpenSSL Version on multiple servers *2003/2008/2008r2/2012*?

Does anyone have a script that would help get the version of OpenSSL on multiple servers?

View Article


Using DHCP powershell modules - getting unexpected output for DNSConfiguration

Hi,I am using the Powershell DHCP module with the hope of exporting a list all DHCP scopes on all DHCP servers and specifically listing the current DNS servers that are being used for each scope.I have...

View Article

windows event viewer

Friends i am looking for script to extract server 2008 event logs from network in csv format. I have around 12 server and i want to extract all server daily logs in one location,  also i am new into...

View Article

Script doesn't work when logged off

I have a very basic PS script that converts Word Doc to PDF. I have a folder/queue set up where the DOC/DOCX files get placed. Then at 2am I run the script and the files get converted to PDF. This...

View Article
Browsing all 15028 articles
Browse latest View live


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