Hi All
i have a service account lets say svcacct1 and it has serviceprincipalnames. i have 3 requirements.
export the serviceprincipalnames of this svcacct1 to a txt file or csv file. experts guide me
I have a csv with serviceprincipalnames in the below format. i want to delete the below values from svcacct1 how do i delete it be importing the csv file as it has 70 values.
names
http/server1.contoso.com
https/server2.contoso.com
will the below syntax work
$list=import-csv C:\temp\list.csv
ForEach($spn in $list){
setspn -d $spn.names svcacct1
}
i have a csv file with serviceprincipalnames in the below format. how do i add the below values from svcacct1 by importing the text file.
names
http/server3.contoso.com
https/server4.contoso.com
$list=import-csv C:\temp\list.csv
ForEach($spn in $list){
setspn -s $spn.name svcacct1
}