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

Append Text to CSV

I'm trying to write the following script and ANY help would be greatly appreciated:1) Export the the employeeID, mail properties to a CSV file2) Reimport that CSV file and add the $prefix before the...

View Article


Robocopy to move subdirectores, without deleting root directory

Is it possible to use robocopy to move all folders from C:\robo\test to C:\robo\test1 without deleting C:\robo\test? Here's what I'm currently using : robocopy C:\robo\test C:\robo\test1 /MOVE /E /R:2...

View Article


Data Mining Public Folders Possible?

Hi,Is this possible to datamine Public Folder? i've done some looking around but not alot really on the top, below is my code which i connect to outlook so just wondering what i need to change or...

View Article

Powershell script

New-ADUser : The object name has bad syntaxat C:\Scripts\NewuserG1.ps1:365 char:13+            New-ADUser <<<< @User -ErrorVarible ADError+            CategoryInfo              :...

View Article

PowerShell script pipeline only taking one record

This started off as a "why doesn't my pipepline input work, but I tested today and it kind of did work.  Previously it didn't read anything.  Now the PowerShell script pipeline only is only taking one...

View Article


replace string in multiple fils

Hi Sir, Please: I have to find and to replace "SkyDrive" or similairy to "Onedrive" in all scripte fils.. Thanks for you Help. My beste Regards, Arnold =========================== # Not work cls...

View Article

replace string in multiple fils

Hi Sir, Please: I have to replace the string "SkyDrive" ou similaire to "OneDrive" in all scripte fils... I don't get any result ... Many thanks for your help, My beste Regards Arnold cls $includes =...

View Article

PowerShell pranks?

Hi allI'm trying to improve my powershell knowledge, so I'm fiddling with some pranks to use on my coworkers.Examples are:Moving their mouse cursorOpening their cd driveText to speech through their...

View Article


System can't create a printer with prnmngr.vbs (Windows 7)

What's the group policy to change to make this work?  This is running as NT AUTHORITY\SYSTEM with integrity level System:prnmngr -a -p printer1 -m "Kyocera FS-9530DN KX" -r port1 Microsoft (R) Windows...

View Article


For Loop Batch File Issue

I'm having an issue turning a bat script I wrote that required user input into one that reads from a text file. I thought I would be able to put the original script in a for loop reading from my text...

View Article

Image may be NSFW.
Clik here to view.

Silent parameter to use in FirstLogonCommand in OOBE pass

what parameter can I use so that pop-up window stating windows activated successfully doesn't show and make me hit ok after I login? I put the below CommandLine script in OOBE > FirstLogonCommand...

View Article

How do I skip a record in pipeline input

I have a fairly simple script that is taking input from "Import-Csv .\file.csv | .\script.ps1". My function has the Param, Begin, Process, End, etc.  I am creating users based off the pipeline CSV data...

View Article

How to delete directories with space in the name recursively?

I would like delete all sub-directories recursively, some of them have space in the directory name. Any suggestion on solving it via windows batch script? Thanks!

View Article


Script to add Domain Alias to SMTP Virtual Server in IIS 6

I am automating server builds and need to script the addition of a Domain Alias to the [SMTP Virtual Server #1].Any help is appreciated.DonTNot really a kid and not really a wizard

View Article

Robocopy script to move old folder/files

I am trying to create a robocopy script to move old folder/files by date to another drive by using this scriptrobocopy %source% %destination% /MOVE /COPYALL /S /Z /MINAGE:1147 /R:1 /W:1 /LOG+:log.txtI...

View Article


How to write to a file with vbscript via powershell

I have a script that will enumerate through an OU and extract the users email addresses, then check to see if the output file and the powershell file (which contains the powershell command) exists. It...

View Article

New-PSDrive to SharePoint Office 365

How can I create a New-PSDrive to an instance of Office 365 over WebDAV?I know I can do it by using the map network drive in the Windows Shell (then specyfing connect to Web site).Just passing...

View Article


Powershell Extracting substrings of a string

When I run the following powershell query; get-eventlog -logname application | select EventID, TimeGenerated, Message | where {$_.EventID -eq 5051} | ConvertTo-Html | out-file C:\McAfee.html I get the...

View Article

Logon script from VPN

I have  a log on batch file that I tell users to run after they have "VPNed" into our network one of the lines saysnet use Q: \\Server\Users$\%username% /persistent:nowhere each user on the network has...

View Article

passing a listviewitem to a script block

A newbie to powershell so I am thick skinned at the moment and so you can call me names :-)The following script evaluates the efficiency of using background jobs on a machine.Looking for help on...

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>