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

Remote Execute Install-ADCSCertificationAuthority

I tried to run Install-ADCSCertificationAuthority on a remote domain joined machine. And get back the following error.0x80072082 ERROR_DS_RANGE_CONSTRAINT (8322)Using Enter-PSSession fails and running...

View Article


Move entire mailbox folders

Is it possible to move entire sub-folders (retaining their name and emails within) to a new mailbox? I am aware you can right click a folder in Outlook and select move or just drag and drop it to...

View Article


SQL Login export

is it possible export SQL login ,AD group of SQL and windows authentication users in file.sql using power shell script ?

View Article

How to change page file size without reboot?

I'm trying to use what's advised in https://blogs.technet.microsoft.com/heyscriptingguy/2013/03/17/weekend-scripter-use-powershell-to-configure-a-new-laptop/ to change the page file size...

View Article

Bulk replace owners of folders based on folder name

Hi all,We have about 800 home folders in d:\home\each folder is named after the username in ADd:\home\%username%I'd like to know if any of you happen to have a script that I could run against all...

View Article


Changing Folder Owner to Folder name from a CSV list of folders.

I have three questions on this script you provided. I need to be able to change the owner of a folder from an admins group back to the user which is the same name as the folder. I also need to pass...

View Article

Powershell - 'op_Addition' Failure when Adding to Multivalued Property

As part of an AD migration I've got a need to remove an entry from a multivalued property on distribution groups and replace it with a new entry. That portion of the script returns the error:"Method...

View Article

Powershell returns no results

Hi Everyone,i got a CSV file which contains the user mail address, i want to use PS to search their corresponding SamAccountName,CN,City,Office. so i wrote the bellowing script, but i cannot get any...

View Article


Updating AD users using a field from a CSV

Hi,I was wondering is somebody could assist with a very simple process I am trying to complete but I just do not understand how.I have the following piece of PowerShell below to query users in AD by...

View Article


Quest Active Roles Scripts

Greetings,I am for some reason uninstalling ARS. But keeping the ARS scripts as they are still in work. So how do I convert ARS scripts in to PowerShell Scripts? Or is there any way to run the ARS...

View Article

Is manual download/implementation of PS modules possible without visual studio?

The customer site is tightly controlled. Direct download from the world-wide web is not permitted. I am "transitioning" from Linux-based Oracle DBA to SQL Server admin. While the basic concepts are the...

View Article

Image may be NSFW.
Clik here to view.

VBS doesn't run PS1 in task scheduler

Hello,I have two scripts. VBS:set shell = wscript.createobject("wscript.shell") shell.run "powershell -file .\test.ps1",0,falsePS1:echo "Hello Universe!" > c:\bin\test.txtIf I run VBS script from...

View Article

Script for Dynamic Groups

Hi All,There is a requirement for adding users to specific group on the basis of a extensionattribute1 field. Users with specific value in extensionattribute1 should be added to a specific security...

View Article


Copy-FileWithHashCheck running it / syntax help

https://gallery.technet.microsoft.com/scriptcenter/Copy-FileWithHashCheck-7420e9f4Hi,I've been trying to run this script but I am unsure on how to get it to work, the correct syntax, etc.I was able get...

View Article

How to query AD with specific Attributes for Office 365 mailboxes?

Hi All,I need some help in determining which Email address recipient is currently already in Office 365 or still on-premise?The below simple PowerShell script is only working to export the list of the...

View Article


Remote program execution for multiple servers

Hello, I am trying to copy a file and execute on numerous servers remotely. the file copies successfully but unfortunately the exe doesn't executes. Can someone please identify where it goes wrong....

View Article

Split String with Powershell

I  am trying to write a script that will read four line of text from a log file: File(s) copied                            : 6883 Directory(ies) created                    : 168 Amount of copied...

View Article


How to format date in a Powershell command

Hi,I try to get the install date of installed software correctly. My command hat the date output not correctly as follow. How can I list "InstallDate" correctly in formatDD.MM.YYYY?PS>...

View Article

Powershell - Word Bookmarks

Hi ,I’m trying to write a PowerShell script will insert the content from different resousrse and then make first line of this content as bookmark.  I can add text, but how to make a bookmark of it - I...

View Article

Output Behavior / reading from XML vs select-string vs write-host

Some odd behavior - and maybe this is something simple, but I haven't been able to come up with a satisfactory google result, so here goes.I have a script in which I use select-string in some cases,...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images