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

Question about VBScript "Continue For"

Hello Can someone please help me with the following question please.I have a VBScript Like thisfor each item in collection if item > 2 then    wscript.echo item end if if item > 5 then...

View Article


Help with Active Directory - UNIX attributes

I have any account in Windows Active Directory that i have to activate the tabUNIX Attribute in powershell. When I activate the manually, the other fields can be updated. I write a script in powershell...

View Article


AD update manager attibute by employeeID

Hello, I want to find users in AD by employeeID. and add new manager by employeeID from next row. I found this script and i want change searching ManagerDN by sAMAccountName to searching by employeeID...

View Article

query Ad for computers push to text file and email detail

Hi Guys,I'm really stuck and i know its a basic question.I'm trying to get the content of the outfile emailed out to report diskspaceBoth parts work independently and i'm stuck on joining them .Any...

View Article

Powershell: how to run vbs script with switches.

Background: To remove a specific service, I usually log into a server, go to path c$\Program files\HP... find a specific vbs, and run it using CMD.exe.Now, I'm new to powershell, so I'm looking into...

View Article


Working with Export-CSV and add-member

Hello, I am working on a powershell script that allows for a list of IP addresses to be stored in a file. This file is then imported into the powershell script. Then while these IP addresses are there,...

View Article

Powershell :: Importing XLSX file issues. Data not reading correctly

Hello my fellow scripters,There are 2 issues I am struggling withI have a file that I need to read with Poweshell and process the data.  Sounds easy enough, but it doesnt seem to be working all that...

View Article

Powershell output format

HiI'm looking for the best way to output data from my powershell.Basically im running a ForEach loop and want to print different dataforeach ($line in $data){}Eg.get-mailbox | select-object...

View Article


[VBScript] I'm looking for a script that will delete a User Profile remoltely

Hello.I have a problem going on in my site. We had a virus outbreak, and it put the profile "cypscanner2" on every PC in my site. I got the virus removed from the original PC with the real user profile...

View Article


A question about Test-Path

HelloIf I am logged in as a user with enough rights and I do this (I have replaced he real path with\\Server\Path)Test-Path \\Server\PathorTest-Path FileSystem::\\Server\PathThat works OKIf I am logged...

View Article

Copy emplyee ID into employee number

Hello ThereHope you all are doing good.Could any help me with quest ARS to copy the employee ID info into Employee Number field in AD.Thanks in Advance.

View Article

Using powershell to manipulate mapi profile and PST file locations

I have a situation whereby I need to move a bunch of PST files out of the default location in Office 2010 and change the mapi profile for the user so that the pst file location updated so the user...

View Article

Issue in PowerShell with setting inheritance

I have a script that I need some assistance in configuring permission inheritance on a collection of folders and subfoldersHere's what I have so far: cls Set-Location "C:\Set-ACL" $log =...

View Article


Delete Local Profiles Using WMI

I have created a simple batch script which i hope to use in order to delete local profiles on a particular system. Every time i run this script, it will delete a few profiles successfully and then it...

View Article

[PowerShell] - How to use Get-Childitem to only browse two levels down and...

Hi, all.I need to use PowerShell and I also need it to browse a folder structure, search for subfolders on the 2 or 3 first levels, get those folder name and recreate the same folder structure (But...

View Article


Deleting Files and (sub)folders - how to

Hi,Easy question. Easy there a vbscript to delete all files and (sub)folders, empty or not. Important, here is that the parent folder must NOT be deleted, only it´s contents. (important: this folder is...

View Article

Make a Windows Service Dependency Based on another Server?

I have some some extensive research and have not come up with much. I know that i will probably need to use some sort of scripting language. I have 2 servers and i have a windows service on one that...

View Article


Export Available Important Windows updates to Excel File

Hi,I want to export List of Important Windows updates available in Windows Updates to excel or csv file by using CMD. I don't have any WSUS server deployed. I want to do this by using CMD command....

View Article

move machine to new OU

how do I move a computer to a new OU "without Quest and without DSQuery"?    I'm doing this inside of a CM2012 Task Sequence and I need it to be 100% native.thanks.  mqh7

View Article

WMI query for User Rights Assignment local computer policy

What I am trying to do is pull the account values under User Privilege Rights that if explored using gpedit.msc within Windows Server 2012 R2 under:  Computer Configuration/Windows Settings/Security...

View Article
Browsing all 15028 articles
Browse latest View live