Set permissions on standardly named locations
I am not sure how to do what I want to do so I am asking here. I have 2 labs of computers. lab1-01,lab1-02,lab1-03lab2-01,lab2-02,lab2-03I have similarly named user accounts that can only log into the...
View ArticlePowershell ComboBox
Hi,Can someone explaine me how can I get out of value from Combobox function to label or textbox. I have the code like this:Function computers{$computerNames = Get-Content -Path c:\computers.txt...
View ArticleGet-Counter : The \\ServerNameHere\\SQLSERVER:Locks(_Total)\Lock Waits/sec...
I have the following code:Import-Module "sqlps" -DisableNameChecking #####http://www.travisgan.com/2013/03/powershell-and-performance-monitor.htmlfunction ExtractPerfmonData { param(...
View ArticleScript for Moving List of Computers to OU
I have a list of computer names in Excel. I want a Power Shell script, or any other type of script, that can grab that list of computer names, and move them into a specified OU.The OU's name is...
View Articlecreating Alias for command which contains two piped cmdlet
hi friendsi use powershell 4.0. is it possible to create Alias for cmdlet which is piped to another cmdlet?i need to use this command frequently:Get-windowsFeature | select-object name ( to see...
View ArticleShadowgroups and sending mail on specific days before password expires
I have no scripting skills, so please be patient with me :-) We have FGPP in place in combination with shadow groups. Used...
View ArticleFinding enabled accounts in a “clean up” OU , searching notes field for...
I am sort of at a loss. Our original plan for cleanup was to move all users and computers that have not logged in in over 180 days to a cleanup OU and disable the accounts. I made a script that does...
View ArticlePowershell runs old version script
Hi all,I'm having a very strange problem with a powershell which I've created. I will try to explain the situation a bit:We have a powershell script that looks like this:Function RunCode {some stuff to...
View ArticleGrab Values within HTML Tag
<div class="primary-title-and-description"><h1> Title Here</h1><p> Paragraph Here</p></div><div class="secondary-title-and-description"><h1> Secondary...
View ArticlePowershell SQLServer Connect via New-PSDrive
Hello, I try to connect to a local SQL Database running SQLServer 2012.I can not connect with my local account, but have to use a dedicated account. I tried the following:Import-Module SQLPS...
View ArticleDefault Printer Properties
Hello,Is it possible to run a powershell command to identify the default printer on a system and then launch the "Printer Properties" to then modify the settings if need be?I know the command to...
View Articlesearching multiple xls docs with powershell
Hi, I have a folder structure with many excel docs that I am looking to search and return the matching row data alongwith the file location and sheet information. I have the basics now, but cant seem...
View ArticleManage network device port forwarding via PowerShell or Webinterface?
Hello,i would allow a non administrator user to modify the network adapter internet shared ports.I dont know how it is called...With this PowerShell commands i got no information which usefull for...
View ArticleSecurity permission in DNS object
Hi.I have problem with several DNS objects, in security permission disappeared account of himself.I can`t find powershell cmdlet for this action.I need 2 scripts: one for get all dns object without...
View Articlelooping thru tif images using OCR
I have this code below in powershell where I OCR a tif image and save it to a table in sql server. OCR is only working on the first page and not looping thru the tif image pages. Can someone help me...
View ArticleShadowgroups and sending mail on specific days before password expires
I have no scripting skills, so please be patient with me :-) We have FGPP in place in combination with shadow groups. Used...
View ArticleConfiguring Endpoints (Import-Module WebAdministration) problem
Hello.I have successfully created an endpoint that imports the webadministration module:New-PSSessionConfigurationFile –ModulesToImport WebAdministration –LanguageMode ‘FullLanguage’ –SessionType...
View ArticleGet-Childitem with Get-FileHash Info
Hello,I have been able run the following script to get File names in a Recurse folders, although I'm looking to use Get-Filehast too, although I'm not sure or unable to tag this on the end of this...
View ArticlePowershell runs old version script
Hi all,I'm having a very strange problem with a powershell which I've created. I will try to explain the situation a bit:We have a powershell script that looks like this:Function RunCode {some stuff to...
View ArticleRecursively select all subordinates for all users from AD
I'd like to use AD to maintain a list of a user's subordinates, which will be used in a custom application to control the display of information. Currently, this list is manually maintained, and it...
View Article