Hackerboard WikiHaboWeb Linkverzeichnis

[HaBo]

major security
 
Windows 7 Hilfe, Tipps, Fragen und Probleme zu Windows 7

datei per batch löschen unter win7

Diskussion: datei per batch löschen unter win7 im Forum Windows 7, in der Kategorie Windows; hallo, ich möchte wissen, welchen batch befehl ich brauche, um eine datei zu löschen. die schwierigkeit: die datei gehört einem ...

Antwort
Alt 15.01.10, 21:38   #1 (permalink)
 
Registriert seit: 01.02.09
Karma: 3
jürgoslav Leistung: Facit NTK
erledigt datei per batch löschen unter win7


hallo,
ich möchte wissen, welchen batch befehl ich brauche, um eine datei zu löschen.
die schwierigkeit: die datei gehört einem "trustedinstaller", und nur dieser hat vollzugriff.
man kann den besitzer unter erweiterte sicherhheitseinstellungen manuell ändern, das müsste doch auch mt einem batch befehl gehen, oder?
kennt den jemand?

jürgoslav ist offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Mit Zitat antworten
Alt 15.01.10, 21:59   #2 (permalink)
Member of Honour
 
Benutzerbild von Brabax
 
Registriert seit: 04.10.01
Karma: 67
Brabax Leistung: OpteronBrabax Leistung: OpteronBrabax Leistung: OpteronBrabax Leistung: OpteronBrabax Leistung: Opteron
Brabax eine Nachricht über ICQ schicken
Standard

einfach "cacls /?" eintippeln.

lG

Brabax
__________________

<< Wir leben bereits im morgigen Gestern, doch vom gestrigen Morgen sind wir noch weit entfernt. >>

<< Träume sind Schäume. Es liegt an dir ob du sie lebst oder ein Schaumschläger bist! >>

<< Erst wenn man beginnt zu implizieren, wird man merken, dass einem sowieso keiner richtig zuhört. >>
Brabax ist offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Mit Zitat antworten
Alt 16.01.10, 08:01   #3 (permalink)
Themenstarter
 
Registriert seit: 01.02.09
Karma: 3
jürgoslav Leistung: Facit NTK
Standard

irgendwie klappts nicht, er sagt immer "zugriff verweigert", obwohl ich die batch als administrator ausführe.

ist das so richtig?
cacls C:\foto.jpg /p Administrator:f
jürgoslav ist offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Mit Zitat antworten
Alt 16.01.10, 12:03   #4 (permalink)
Themenstarter
 
Registriert seit: 01.02.09
Karma: 3
jürgoslav Leistung: Facit NTK
Standard

ach übrigens, man muss auch manuell den bestizer wechseln, vorher kann man die zugriffsrechte nicht ändern
jürgoslav ist offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Mit Zitat antworten
Alt 17.01.10, 10:34   #5 (permalink)
 
Benutzerbild von Ancient
 
Registriert seit: 15.08.05
Karma: 13
Ancient Leistung: Z3
Ancient eine Nachricht über ICQ schicken Ancient eine Nachricht über MSN schicken Ancient eine Nachricht über Skype™ schicken
Standard

Unter Windows 7 gibt es "TAKEOWN"

Zitat:
C:\Users\Ancient>takeown /?

TAKEOWN [/S system [/U username [/P [password]]]]
/F filename [/A] [/R [/D prompt]]

Description:
This tool allows an administrator to recover access to a file that
was denied by re-assigning file ownership.

Parameter List:
/S system Specifies the remote system to
connect to.

/U [domain\]user Specifies the user context under
which the command should execute.

/P [password] Specifies the password for the
given user context.
Prompts for input if omitted.

/F filename Specifies the filename or directory
name pattern. Wildcard "*" can be used
to specify the pattern. Allows
sharename\filename.

/A Gives ownership to the administrators
group instead of the current user.

/R Recurse: instructs tool to operate on
files in specified directory and all
subdirectories.

/D prompt Default answer used when the current user
does not have the "list folder" permission
on a directory. This occurs while operating
recursively (/R) on sub-directories. Valid
values "Y" to take ownership or "N" to skip.

/? Displays this help message.

NOTE: 1) If /A is not specified, file ownership will be given to the
current logged on user.

2) Mixed patterns using "?" and "*" are not supported.

3) /D is used to suppress the confirmation prompt.

Examples:
TAKEOWN /?
TAKEOWN /F lostfile
TAKEOWN /F \\system\share\lostfile /A
TAKEOWN /F directory /R /D N
TAKEOWN /F directory /R /A
TAKEOWN /F *
TAKEOWN /F C:\Windows\System32\acme.exe
TAKEOWN /F %windir%\*.txt
TAKEOWN /S system /F MyShare\Acme*.doc
TAKEOWN /S system /U user /F MyShare\foo.dll
TAKEOWN /S system /U domain\user /P password /F share\filename
TAKEOWN /S system /U user /P password /F Doc\Report.doc /A
TAKEOWN /S system /U user /P password /F Myshare\*
TAKEOWN /S system /U user /P password /F Home\Logon /R
TAKEOWN /S system /U user /P password /F Myshare\directory /R /A
Ancient ist offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Mit Zitat antworten
Alt 20.01.10, 16:59   #6 (permalink)
Themenstarter
 
Registriert seit: 01.02.09
Karma: 3
jürgoslav Leistung: Facit NTK
Thumbs up

ok, das hat schonmal geklappt, vielen dank.

wie deaktiviere ich einen dienst dauerhaft per batch?
manuell würde ich services.msc öffnen, den dienst wählen, und den starttyp auf "deaktiviert" umstellen, welchen befehl brauche ich dafür?
jürgoslav ist offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Mit Zitat antworten
Alt 20.01.10, 17:41   #7 (permalink)
 
Benutzerbild von Ancient
 
Registriert seit: 15.08.05
Karma: 13
Ancient Leistung: Z3
Ancient eine Nachricht über ICQ schicken Ancient eine Nachricht über MSN schicken Ancient eine Nachricht über Skype™ schicken
Standard

Code:
C:\Windows\system32>sc config
DESCRIPTION:
        Modifies a service entry in the registry and Service Database.
USAGE:
        sc <server> config [service name] <option1> <option2>...

OPTIONS:
NOTE: The option name includes the equal sign.
      A space is required between the equal sign and the value.
 type= <own|share|interact|kernel|filesys|rec|adapt>
 start= <boot|system|auto|demand|disabled|delayed-auto>
 error= <normal|severe|critical|ignore>
 binPath= <BinaryPathName>
 group= <LoadOrderGroup>
 tag= <yes|no>
 depend= <Dependencies(separated by / (forward slash))>
 obj= <AccountName|ObjectName>
 DisplayName= <display name>
 password= <password>
Also sc config dienstname start=disabled
Ancient ist offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Mit Zitat antworten
Alt 20.01.10, 17:44   #8 (permalink)
Themenstarter
 
Registriert seit: 01.02.09
Karma: 3
jürgoslav Leistung: Facit NTK
Standard

perfekt, bestens
jürgoslav ist offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Mit Zitat antworten
Antwort

[HaBo] » Operating Systems » Windows » Windows 7 » datei per batch löschen unter win7
Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind aus
Pingbacks sind an
Refbacks sind an



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194