如何检查我是否具有远程系统的管理员访问权限?
How do I check if I have admin access to a remote system?
使用 PowerShell,如何检查我是否有权访问远程系统(例如 \SYSTEM0123\c$\
)?
你可以try
它:
try {
Get-Item -Path \SYSTEM0123\c$ -ErrorAction Stop
# if you have access these statements will run
} catch {
# Don't have access
}
使用 PowerShell,如何检查我是否有权访问远程系统(例如 \SYSTEM0123\c$\
)?
你可以try
它:
try {
Get-Item -Path \SYSTEM0123\c$ -ErrorAction Stop
# if you have access these statements will run
} catch {
# Don't have access
}