Quantcast
Browsing all 21975 articles
Browse latest View live

Powershell : need to copy files from one server to multiple

Hey Guys,Am a newbie to powershell & would be looking for you ppl to help me in finding solution to my problemi have a scenario wer i hav to copy set of files from one source server to multiple...

View Article


Make a Copy of a 'New-Module -AsCustomObject'

I would be most grateful if somebody could assist in solving this issue for me. I have created a rather complex module, with many properties, methods etc. I create arrays of these objects and have the...

View Article


Powershell script to obtain the last modified folder in a root folder

I have a root folder which contains a number of subfolders within it (1 level deep).  Can someone give me a small powershell script to obtain the last modified folder in the root folder.

View Article

Copy-ToZip and Start-Job

I've written some code but its not working as intended.I'm using copy-toZip which comes from the Powershell Powerpack but it seems to try to compress files out of sync and gets premission...

View Article

Create shortcut using powershell

Hi, Can anyone tell me a wat to create RDP shortcuts using powershell?I have written a script for mountpoints where in it compares the mountpoints with the mounpoints in the text filefor Ex:- $volume=...

View Article


powershell copy or move a directory tree

Hi, I need to copy or move a directory tree depending on a "lastused date" to a new location. The files in each directory like *.log or *.txt  must be opend and searched for special strings and written...

View Article

copy file to remote computer from local with credentials

 I am using windows XP I want to copy a file from my system to another system(XP) through WMI.I don't have admin rights to that system.so i want to use credentials.. There are many sample program...

View Article

How can I move multiple user objects from one OU to a different OU in the...

I know this has been answered here multiple times but no one answer appears to be complete. Each step brings a new error.I've spent plenty of time and no training figuring out VBS, but I haven't...

View Article


Setting permissions on home directories

I need to set permissions for a bunch of user folders in my home directories. I can get everyone removed, local administrators, user, and system rights just fine. But when i try to add domain admins i...

View Article


Export-CSV Add date to file name

I would like to use export.csv and attach the date to the file. EX. example_7/5/13.csv, example_7/6/13 and so on..I am using version 3.0. I am trying different things.$CurrentDate = Get-Date Export-Csv...

View Article

Remove Part of a String

I am trying to figure out how to remove part of string...   In the Stings belowNT AUTHORITY\SYSTEMBUILTIN\AdministratorsI wantSystemAdministratorsis there an easy way to remove NT Authority\  and...

View Article

Start-job not working as expected.

I'm writing a script using test-connection on many servers and want to use the start-job so that each instance runs seperate from the other. The following is the code I have, but the variables don't...

View Article

import-csv question

 If my input file is delimited by a vertical Bar(|) and data has 2 sets of double quotes around data values would I need to do anything special other than specify the deliminator when reading the...

View Article


What's wrong with this code? Home directory manipulation

So what I want to do here is create new home folders for each user listed in a csv file, copy the permissions from their old directory to the new one and set their home directory to this New folder:...

View Article

Parse, Copy, Move files and Log results

I'm looking for a PS script to Parse, Copy, Move and Log results of Files in a directory that I will schedule to run as a task.I am currently teaching myself some basic PS scripting but am obviously...

View Article


Powershell - copy data from excel

Hello,i have a question, i am building a powershell but i am not very good at it :)what i am trying to do is copy from a excel file a single cell (C2) to another excel file cell. this part work like a...

View Article

How to set Impersonation Permissions by using Active Directory Sites and...

Usingpowershell cmdlets these impersonation can be set to specific users.is it possible to set same  using Active directory users and computers and Active Directory Sites and Services.For windows 2003...

View Article


change Network Adapter IPv6 entry ::1 per Powershell

Hi,I've a Little Problem with changing the ::1 after installing AD. My DC reboots and i'm login to Domain, then in the NIC Ipv6, on Position Primary DNS: ::1This entry should be the Ip of DC...

View Article

PowerShell: Change desktop wallpaper on remote computer

Hey,I was trying to have some fun with my boyfriend, chaning his wallpaper. I couldn't figure it out, so I asked him for help, but he couldn't figure it out either. We both run win7, he's running...

View Article

Script Error

When I am Running this script I am getting this errorIf((get-service -name browser -computername User-PC).status -notlike 'running'){ invoke-command -computername User-pc start-service -name browser...

View Article
Browsing all 21975 articles
Browse latest View live