Skip to content
Snippets Groups Projects
Commit 0a720eb0 authored by BAZIN Jean-Noel's avatar BAZIN Jean-Noel
Browse files

remove secretariat MEE specific network drives

parent 6d54ccea
No related branches found
No related tags found
No related merge requests found
......@@ -94,40 +94,4 @@ if ($result -eq [System.Windows.Forms.DialogResult]::OK) {
}
# Mount Secretariat ELEC
$NetworkShare = "\\ad.imta.fr\partages\secretariat-elec"
$LocalMountPoint = "w:" # You can change this to any available drive letter
net use $LocalMountPoint /delete
# Map the network drive using net use
net use $LocalMountPoint $NetworkShare /user:$username $password
if ($LASTEXITCODE -eq 0) {
Write-Output "Network drive mounted successfully at $LocalMountPoint"
} else {
Write-Output "Failed to mount network drive. Error code: $LASTEXITCODE"
}
# Mount ISTC-2023
$NetworkShare = "\\ad.imta.fr\partages\istc-2023"
$LocalMountPoint = "v:" # You can change this to any available drive letter
net use $LocalMountPoint /delete
# Map the network drive using net use
net use $LocalMountPoint $NetworkShare /user:$username $password
if ($LASTEXITCODE -eq 0) {
Write-Output "Network drive mounted successfully at $LocalMountPoint"
} else {
Write-Output "Failed to mount network drive. Error code: $LASTEXITCODE"
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment