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

Domain-client login scripts for usb authentication and encryption on the fly...

I need a vbs script that will run when a user logs in domain and will detect if the user plugs in an unauthorized device, such as a thumb drive, external hdd or any other storage device.  I need it to...

View Article


Script to convert migrated Exchange 2007 users to Office 365 (mail enabled...

Dear all,We have a nasty situation out here. One of our customers is migration a bunch of users to Office 365. Everything seems to go fine until we get to the point where we need to run the script to...

View Article


Port a WMI call into a Poweshell Variable

Hi,Get-WmiObject Win32_ComputerSystem|Select Model would like to place into a Powershell Variable?Regards!

View Article

find where a service account is being used.

we need to change the password on an account used for services.is there a script out there to find where and what servers its being used on throughout the domain.thanks

View Article

Detect KB

Hi, Please checkl my script. Error: expected ')' 'Returns if Windows KB2506143 installed Option Explicit Dim objWMI, strComputer strComputer = "."  'Run the query Set objWMI =...

View Article


Remotely remove local account from the local administrators group on multiple...

I'm looking to put together a script to remove a local account from the local administrators group from multiple machines. I want to accomplish this without deleting the account from the machine. I...

View Article

HTA VBS errors in WinPE are blank! Why?

Hi folks,I have an HTA which has some VBS.Whenever I get a script error, a blank dialog box appears. Blue top bar, with an X, no text, and a large white box, no text or buttons.The WinPE version we are...

View Article

Script to remove broken shortcuts from Windows 7 Start Menu / Task Bar

I am trying to write a vbs script to remove broken shortcuts from the Windows 7 Start Menu and Task Bar.  For example, if you have Office 2013 uninstall Office 2010 as part if it's installation and you...

View Article


Replacing College name in Display name of user properties with a new name via...

I Want to replace my College name with an updated name to all AD user.How this will be possible via scripting. Any Suggestion ? College name i have mentioned in Display name.how can i modify or replace...

View Article


Cannot get AD User Account using Get-ADUser from user list or array.

Hi,I'm trying to catch Get-ADUser error from users list or array to identify if a user exist and if it doesn't exist, migrate that with ADMT.I created a GUI with a TextBox in powershell where I put the...

View Article

Remove specific tags from all Users profile in SharePoint 2013

Have to remove a specific tag from all users profile in SharePoint 2013  tried with this one but that dosn't work # Get a context object$context = Get-SPServiceContext -Site http://sitecollectionurl#...

View Article

Add-CMDeploymentType : Specified cast is not valid.

Hi,I'm trying to write a Powershell-script to deploy software in SCCM 2012.Everything works fine but the Add-CMDeploymtenType, there I got this error:Creating Deployment Type Microsoft - Office - 2010...

View Article

Execute part of Script only if parameter is set

Hi thereI would like to merge two scripts which have actually only one command difference.In batch I would add an section and ignore this section if no parameter is given.But how to do this in...

View Article


Error while using vbscript to get the return value from a temporary table in...

Hi,I have created a vbscript which will do the following tasks:1. Create a temporary table2. Fill the table with the result set from DBCC sqlperf (logspace)3. Add a column named "freespace" to...

View Article

Where can I download all update-help files for PowerShell v4.0?

When I attempt to run the 'update-help' command I receive this error message:update-help : Failed to update Help for the module(s) 'ISE, Microsoft.PowerShell.Management, Microsoft.PowerShell.Utility,...

View Article


User Profile Cleaner

Hi everyone,does anyone have script that can clean a user profile without deleting the profile. 

View Article

How can I convert timestamps in cookie files to a 'normal' DateTime using...

Hi everyone,I have been trying to read the contents of cookie files used by IE11. I need to read the timestamps in there offline, I want to examine these in a share with the profiles of the AD users.I...

View Article


Enum and Hyphens

Hello, I tried create custom Enum for my management script and unfortunately I cannot find solution how use hyphens in enum definition.This is my sample code: Enum OsFamily { Appliance = 1 HP-UX = 2...

View Article

Script to monitor disk space usage on MS Server 2012

Hi, I'm looking for a PowerShell script or vb that uses for collecting disk usage running from a remote machine to get the disk space capacity and space used periodically and output to a CSV file for...

View Article

Splitting a text file on a pattern

Hey Scripting guys...Am working on a script to read a long text file and split it into multiple lines based on a specific text format. I need to split the text on 4 capital letters, a space, and 4...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images

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