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

When I type a short name in browser it redirects to a sharepoint site . How...

Hello,I am thinking to automate a task. Task is to when I type "Quota" in browser it redirects to a sharepoint Site where i have report . Please let me know how to do it

View Article


PS script errors at 'Begin {}'

I found a script on blog.powershell.no, and am trying to adjust it to fit my needs. I've pasted my revisions below. When I run the script (.\script.ps1 -ToCheck All), I should get a list of the run-as...

View Article


Image may be NSFW.
Clik here to view.

PowerShell WPF GUI - looping through datagrid

Hello,I have a PowerShell script I am writing using a WPF user interface.  The scripts pulls up a window with options to import a csv file with active directory information (mail and mailnickname),...

View Article

how to list local admins in AD as a txt file which has a name as date of the day

Hello, I have a script which lists local admins of all hosts in Active Directory:$Searcher = New-Object DirectoryServices.DirectorySearcher([ADSI]"") $Searcher.Filter = "(objectClass=computer)"...

View Article

Bulk-AD-Group-Creation via a csv file

How can I populate "OtherAttributes" via a csv file?This script works fine except for populating extensionAttribute2. The information to be populated into extensionAttribute2 will not always be the...

View Article


Powershell DFS - adding new DFS member

Hi Is anyone out there currently experiencing the error below when adding new DFS member using new-dfsrmember cmdlet? PS C:\> New-DfsrMember -ComputerName WEBSERVER -ReplicationGroup POD1...

View Article

Mozilla Firefox file copy

I need to copy a file from a network share to %appdata%\Mozilla\Firefox\Profiles\m3fh72ep.default location. Since the above location will be different for all the Users, I tried creating File...

View Article

ROBOCOPY Scripting

Hello Guys,I have one situation to make back up with Robocopy. Source Folder destination folderI want to make robocopy script here is my Condition.* make backup from source to destination folder.* Run...

View Article


Help manipulating some regkeys.

Hi I am hoping someone can help me. I need to put the following regkey below in a regadd command and also I need to increment the clientid. HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Sanako\Shared...

View Article


Creating custom object in a loop

I found a function (in the TechNet gallery) that get's the run-as accounts for services and tasks on a local or remote machines. I'm trying to re-arrange the parts to suit my needs. I'll post my...

View Article

Hey Scripting GUy, Please look below the script for searching for a...

Sub HighlightTargets2()Dim range As rangeDim i As LongDim TargetListTargetList = Array("m", "bo", "a") ' put list of terms to find hereFor i = 0 To UBound(TargetList)Set range =...

View Article

@FINDSTR - How to find an element containing . (dot) when . (dot) is...

I'm checking a LogFile containing FileName(s) and want to Include/Exclude files according to FileType.How to use @FINDSTR  to find an element containing . (dot) when . (dot) is wildcharacter...???

View Article

Enable-MSDSMAutomaticClaim can't run this silently?

Hi,I am trying to run the following command however, it always asks for a confirmation, but I am trying to run this in a script for automated configuration. is there any way i can run this "silently"...

View Article


Script to move all pictures without "Date Taken" tag to another folder...

Hi Script guysAre there a script guy who can help with a script to run on a specific folder + subfolders to find all Pictures (and maybe also videos, avi and mp4) with out the "original date taken" tag...

View Article

Running a command in a remote Powershell session

Hi,I have used the Enter-PSSession to get a remote session on a domain controller... all is ok with that.when i run the following command it fails, however if i run this locally on the domain...

View Article


Powershell will not update-help

Update-help doesn't work. Update-help -sourcepath "D:\update help" also doesn't work. I manually downloaded the files and put them in that folder since the live update fails, but even that won't work....

View Article

Bulk-NewADGroup-Creation

Everything works great in this script as long as there is an entry for each field in the csv file.This is the csv file...

View Article


Message all users in an RD Session or VDI collection

I want to be able to send every user in a VDI collection a message, such as an emergency rebuild notification. I can send the messages one at a time but once we roll out fully, this would take quite a...

View Article

Passing pipeline variable to functioin

Hey Scripting Guy,How do I pass a pipeline variable to another function?Example:I have a .csv file with a list of users First and Last name. I need to get the users sAMAccountName and pass it to...

View Article

What is the point of NoDriveLetter in Mount-Diskimage?

I tried to use NoDriveLetter to mount a disk image to an empty folder. A straightforward task in DiskManager, but turned out to be more complicated in PowerShell.Mount-DiskImage will return a...

View Article
Browsing all 15028 articles
Browse latest View live


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