Link to home
Start Free TrialLog in
Avatar of Isaias Perez
Isaias PerezFlag for United States of America

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.PS1 -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 

Open in new window

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.
Avatar of Rajkumar Duraisamy
Rajkumar Duraisamy
Flag of India image

Copy the ps1 file to a remote computer. Open PowerShell as administrator, navigate to the power where you copied the ps1 file and run the below command

.\Get-WindowsAutoPilotInfo.ps1 -ComputerName MYCOMPUTER1,MYCOMPUTER2 -OutputFile .\MyComputers.csv 

Open in new window


Change MYCOMPUTER1,MYCOMPUTER2 name as per your requirement..
Please inform whether you are able to get the results and also whether any other assistance required on this..
Avatar of Isaias Perez

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
ASKER CERTIFIED SOLUTION
Avatar of Rajkumar Duraisamy
Rajkumar Duraisamy
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial