Quantcast
Browsing all 21975 articles
Browse latest View live

Remote Windows Updates Query

I found this code and am wondering where I can add a variable or how to query a remote machine with the below (I would like to do it throughout the AD OU tree):#Get All Assigned updates in...

View Article


Modify Non-Viewable attributes through Power Shell or Dos commands.

Hi,I am trying to modifying the below information for existing users using CSV file. Could you help me to do it through Power Shell.Scenario:I have 50 Users where I want to modify "Othertelephone"...

View Article


Absolutely cannot get hashtable columns to line up in email.

OK. So I have been working on a ps script (v2). Everything seems to work fine. editing and running from PowerGUI.I have this section of code in a function:$mismatch_ademail = New-Object PSObject...

View Article

Export foldel ACL to Excel (Only Show 2 folder level depth)

How to export foldel ACL to Excel  (Only Show 2 folder level depth) For example, C:\abc folder I only want to get NTFS ACL for folder with 2 folder level C:\abc\XX\XX And I don't want to get ACL for...

View Article

RDP and Network configuration verify script.

I have two script and i am trying to compile it to one. But while compiling these two i am not getting the expected output.    Remote network status verification   [cmdletbinding()] param (...

View Article


Error while adding local user to a local group through powershell

I used the following command to set the password and add a group to the user :$user=[ADSI]'WinNT://localhost/account5'; $user.SetPassword('Passw0rd#'); $OBjOU...

View Article

Home directory creation for local user accounts using powershell

Through Computer Management when I create a user, a home directory is created for the same user in the folder C:\Users.I am creating a user through powershell in a remote machine.I am using the...

View Article

Image may be NSFW.
Clik here to view.

cisco inventory

Hello,i found a cisco inventory powershell script on the internet. but when i run this i'm getting some error how can i fix...

View Article


powershell get-aduser with two seperate fileds into on csv export

hello is there any way i can use get-aduser to export two seperate ad fileds into one colume on csv exportbasicaly i have description field: 1234, and Deptartment field with  "054321 - Human...

View Article


Set-RegString - How to set Data that has $ character

Using PSRemoteRegistry / PSRRtrying to do:"SERVER1" | Set-RegString -Key $key -Value "Value1" -Data "te$tValue1"when I do:"SERVER1" | Get-RegString -Key $key -Value "Value1"the output of the -Data is :...

View Article

how can copy source path of share folder to another destination share folder...

Hihow can copy source path of share folder to another destination share folder from CSV file through PowerShell 2.0 or 3.0Also if possible, can I get the same share and security permission from source...

View Article

Add security groups to t he folder acl

Hi,I have the list of fodlers and the security permision which needs to be added. But i am not sure how to use this csv file to add the sec groups to the acl of the listed folders. am new to powershell...

View Article

Error during Import-Module PSRR

I have the below specified in my Microsoft.PowerShell_profile.ps1 fileImport-Module PSRRand I get the below error when launching PowerShellAt...

View Article


How to check a csv file is blank or not using powershell script

Hi, I am new to windows shell scripting, infact i have no experience at all,but i have a small requirement, Can someone please help me with it? I have a csv file in this location C:\temp\abc.csv So,...

View Article

Set Registry Key on HKCU:\Software\Policies

Hi, i have a software that needs to add some keys into the registry HKCU:\Software\PoliciesBut it turns that even this is Current User Key, the user don't have rights to this Key.I seem to be able to...

View Article


powershell using adsi with alternate credentials

Hi,I would like to check the local admin groups on a list of servers in another domain.I have a domain admin account there.I found this script snippet that get's the info for me in the domain I am...

View Article

Close all popups pulled from running a an executable

I have been using PowerShell to automate some functions.  One of them is when I call an exe file to process user accounts.  The exe file produces a popup.  It looks like a form with no options but to...

View Article


Connect to different domain controller

What will be powershell script to connect  to different domain controller from powershell module to AD?

View Article

Getting extensionAttribute1 using Get-ADComputer

All,I am trying to check extensionAttribute1 value for computer accounts in an OU. I am running the following command$Computer = Get-ADComputer Filter * -Searchbase <OU path> -Properties *It runs...

View Article

Send email when new file is created in a folder

Main idea here is to send an email when i new file or folder is created in some path.for $body it should say new file detected: FILENAMEHERE$path = "Z:\" $limit=$(Get-Date).AddMinutes(-1) $sendmail=...

View Article
Browsing all 21975 articles
Browse latest View live


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