Isaias Perez
asked on
Intune Questions - Outfile to Remote Server
Question regarding gathering hardware ID. I was told that during the setup process of a new machine you can click on Shift F10 on the Regions page to get to the cmd prompt. Once there I typed the command powershell to run that and then set the proper execution policy. Once I get to the point that I install the WindowsAutoPilotInfo Script and run the Get-WindowsAutoPilotInfo.P S1 -OutputFile AutoPilotHWID.CSV I am wondering how do i extract that CSV File from the machine if its still in the middle of setup and i do not at that point have access to windows explorer. I tried to do the following but got credentials errors.
Get-WindowsAutoPilotInfo.PS1 -OutputFile \\ComputerName\HWID\AutoPilotHWID.CSV
How can i use the -outputfile switch to put the file on a remote machine? On the remote machine I created a folder in the root of C and shared it. Also gave everyone full access to that folder.
Please inform whether you are able to get the results and also whether any other assistance required on this..
ASKER
I dont actually have the PS1 file. I use the Install-Script cmdlet in Powershell to install it so not sure how to follow your instructions above.
Install-Script -Name Get-WindowsAutoPilotInfo
Get-WindowsAutoPilotInfo -Outputfile C:\HWID.csv
Install-Script -Name Get-WindowsAutoPilotInfo
Get-WindowsAutoPilotInfo -Outputfile C:\HWID.csv
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
Change MYCOMPUTER1,MYCOMPUTER2 name as per your requirement..