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

Using powershell executing a query on multiple SQL servers

HI ,Can some one help me on below requirementI want to execute a powershell script from my desktop which reads all other 5sql  servers data and dump to a table.my desktop has sql server ( sql instance...

View Article


Retreiving extended file properties - Company Name

Hello everyone,I have been tasks with trying to document owner, author, and company name for each file on our network. I have had limited success using the code below but it doesn't seem to be getting...

View Article


'How Can I Map a Drive Based on the Computer’s Subnet?' Question

Hey,In the article on mapping a drive based on a computer's subnet, a brief mention is made about the difficulty of doing this with a PC that has two or more active NICs.  It was mentioned as something...

View Article

Function and returned values

I have a function, listed below, that basically receives a list computer names and uses those values to identify all local profiles on such computers. These profiles (which basically is a string with...

View Article

Change with powershell 3

In v2 I have a profile script that sets aliases and starts programs after asking:$app = Read-Host -prompt "Would you like to start daily use apps? [Anything but no starts apps]" if($app -eq "no") {...

View Article


PS Script to Copy Report Files to SP List, Creating Folder Based on Part of...

I have a project where I need to populate an existing SharePoint library with reports each day from a file share.  The new report will overwrite existing reports (but not folder) and be put into...

View Article

Help passing variables with GetNewClosure

I'm having trouble passing a variable to the remote workstation in a script. I would like the script to uninstall any program you enter for $program. This is what does work:$computers = Get-Content...

View Article

How to set password expiration date of Active Directory user (VBScript)

I am writing an application that communicates with Active Directory and I need to test how it behaves when the password of a user account in Active Directory has only a few days until its expiration...

View Article


Delete certain files in subfolders

Guys,Need help creating a script that deletes certain pst files I created that are in certain subfolders. So far this is what I have. Thanks in advance. Dim file Dim oFSO 'ON ERROR RESUME NEXT Set oFSO...

View Article


Image may be NSFW.
Clik here to view.

VBS - Login Script for mapping with multiple NICs.

HI, I tried this code for mapping drive with Multiple NICs, but i am getting this error.set objNetwork = CreateObject("Wscript.Network") strComputer = "." Set objWMIService = GetObject("winmgmts:\\"...

View Article

Change Owner/Permissions for folders with exceptions and then delete those...

Hey Scripting Guy!! I have read, lots of posts about the same topic... not so good so far... this is what I need to do...Under C:\Users\  -I have a lot users... I need to delete those...

View Article

How to Extract Folder and Sub Folder NTFS Access Rights For Share Drive (NAS)

Hey There!Below powershell command extract users list for Root Folder(CALPROD) and its SubFolders and ALL its FILES under every folder.What changes should i need to make to below script, to...

View Article

New-FsrmFileGroup Powershell cmdlet not running in 2008 R2, maybe i need to...

PS C:\Users\ns_service> New-FsrmFileGroup -Name "TUK_Media" -IncludePattern @(".aac", ".aif", ".aiff", ".asf", ".asx", " .au", ".avi", ".divx", ".flac", ".m3u", ".m4v", ".mid", ".midi", ".mkv",...

View Article


Have byte array, need to convert values to uint16, uint32

Howdy all,I know I'm just being dense, but how do you convert specific bytes in an array to Uint16 or Uint32 variables?  I'm trying to do this with powershell.I have a binary file that has some integer...

View Article

Hard Drive Rotational Speed

Need a command line or script to list rotational speed of local or remote system hard drives.  It would be nice to have it say: 5400RPM, 7200RPM, etc.

View Article


Powershell and connecting to WSUS (multiple domains)

I'm working on a script to clean up our WSUS databases. The script works great against the domain with the upstream WSUS server. The problem is that we have multiple domains, and I'm not sure how to...

View Article

Formatting multiple outputs of Cmdlets into a single HTML email

The object of the code is to get a summary list of events from the Windows Event Log and then produce a detailed list of each entry from the Windows event logs.  Later I will enhance the code to only...

View Article


reset the mailbox quota through script/powershell

Hello friends, Using exchange 2010 Sp2I have AD group called “Advance Users” in which there are 700 users whose mailbox are set to Issues warning at (MB) - 525 and Prohibit send at (MB) – 550 now we...

View Article

Read a comma delimited file in vbs and ignoring the last line

I got a text file like this. BeginWord, Word1, Word2, Word3, Word4, Word5, Word6Word, Word1, Word2, Word3, Word4, Word5, Word6Word, Word1, Word2, Word3, Word4, Word5, Word6EndI want to read the whole...

View Article

Copy Last six Months data from NAS Folder

HI All, We have a lots of folders by date and millions of small files in thoes folders.  \\NAS\Recordings  So i want to copy last six months data to a another location and backup. backing up this NAS...

View Article
Browsing all 15028 articles
Browse latest View live


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