Quantcast
Browsing all 21975 articles
Browse latest View live

NetworkLoadBalancingCluster module not working from .net code

Hello to everyone. I'm trying to call cmdlets from NetworkLoadBalancing from .net code but for some reason it does not work.Code snippet 1:InitialSesstionState iss =...

View Article


Powershell Script to relocate User's Profile folder during Deprovision

Hi, I'm trying to write a script which, upon execution, move a user's profile folder from it's original location (in the \\server1\profile$ folder) into a sub folder in that location...

View Article


Connecting to remote server failed

Hi,I have 6 scripts out of which one script execute with the following error, If i am getting the below error for this script, i should get it for all the script? What i Have learnt sofar, remote...

View Article

I am looking for script which can copy files from one location to another...

while copying the files, it has to check with current date and it has to create a folder and copy the files into that. - Now if the old files are exsisting in the present folder you have to move them...

View Article

How to write script errors into a custom event log ...

So I've run the following code on one of my servers to create a custom event log and source:New-EventLog -LogName psLogs -source scripts Limit-EventLog -overflowaction overwriteasneeded -maximumsize...

View Article


PowerShell script to change AD password remotely

Hi,I'm trying to make a script in PowerShell for people in my organization to change their AD password.Some users of our organization aren't at the same domain (different organizations) but, their...

View Article

Powershell: Find running script/exe

I have written a few powershell test application to test my application. I want to check remotely if any of my test application is running or not? Is there any way to find if Windows Powershell is...

View Article

Delete Old Profiles without prompt

Good AfternoonI currently have this Powershell script$Filedays = "-10" $servers = "SERVER1"$docpath = "\\$server\C$\Documents and settings" foreach($server in $servers){ $users = Get-ChildItem -exclude...

View Article


Domain copmuters

Dear Exprt,I have a list of old computer names that need to delete from AD in different domains.how do i script and perform this.Support@Mytechnet.me

View Article


win32_service recovery tab methods

Hi Team,How to set the options on the recover tab of a service. I am not seeing any methods related to it under win32_service.Recovery -> first failure, second failure, subsequent failures.

View Article

Need help importing a CSV file using IMPORT-CSV commandlet

Hello:I am fairly new to Windows Powershell and need some help. I want to import a CSV file using the import-csv commandlet but getting some name errors because of the csv file header not containing...

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

Image may be NSFW.
Clik here to view.

Colorful HTML rows

Hi guys,I have following script that parse dblog file and creates HTML table. One of the column name is circularlogging. What i want is to make red circularlogging columns that have "false" value. Here...

View Article


add chart with data source

Hello,i have a powershell that imports disk sizes from servers and puts it in a excel.no i would like to have a chart that display this. is there a way to do this with powershell so don't have to add...

View Article

delete pages from a site using powershell script

Delete pages from a site using powershell.I want to delete the pages for past 10days(I want to keep the pages for past 10days and i should rest pages)adityadugyala

View Article


Powershell Remoting from a TaskScheduler task run under unprivileged user.

Hi,I have a TaskScheduler task configured to run under unprivileged  account "shutdownscript"The task starts batch file which in its turn starts powershell script.The script has a lineInvoke-Command...

View Article

Counting all objects in AD is not updated after adding a user

HiI am running the command to count all of my AD objectsThe question is, why when running the command after adding a user, it does not get updated in the following command: Get-ADObject -Filter {name...

View Article


Powershell:- Display Data in Columns

Hi,I hope that you can help, I have written a powershell script that pings all our external routers (Router Names held in a txt file) and then outputs the results/status to a HTML page, for the IT...

View Article

How do I 'round and format' a subexpression in a Write-Host?

Hello,The following division, $($StateTot/$NationTot), gives me 0.191304347826087.  What do I need to do to get the division to format as 19%, so the Write-Host would read Write-Host "The percentage of...

View Article

Get list of users that installed software on server

Is there a way with PowerShell to determine what user account was used to install software on a system?  I've been looking at the Win32_Product and Win32Reg_AddRemovePrograms classes but don't think...

View Article
Browsing all 21975 articles
Browse latest View live