Remove Notepad and Wordpad

G

Guest

I need to remove notepad and wordpad from a set of Windows XP computers.
Does anyone know the issues I may run accross doing this and if there are any
simple ways of doing this. I know WFP (Windows File Protection) kicks in
when I try to delete notepad. I have not tried wordpad yet.
 
A

Ayush

Go to Add/Remove programs > Add/Remove windows components > Follow steps.

There should be no problems as far as I know.

--
Ayush [ Be ''?'' Happy ]

For any query, search > www.Google.com
Want to know about a term > http://en.wikipedia.org

Replied To :
-------------------------------------------------------------

:I need to remove notepad and wordpad from a set of Windows XP computers.
: Does anyone know the issues I may run accross doing this and if there are any
: simple ways of doing this. I know WFP (Windows File Protection) kicks in
: when I try to delete notepad. I have not tried wordpad yet.
 
J

John John

For Wordpad you can run this:

RunDll32 advpack.dll,LaunchINFSection %windir%\INF\wordpad.inf,
MSWordPadUninstall

In case your newreader breaks it the [spaces] are like so:
RunDll32[space]advpack.dll,LaunchINFSection[space]%windir%\INF\wordpad.inf,[space]MSWordPadUninstall


For Notepad I'm not sure where the inf information would be.


You should alos be able remove it with Sysocmgr:
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\ocm.txt /q

You need an answer file for it (ocm.txt):

===========================
[Components]
MSWordPad = off
===========================

The path to the answer file is specified in the u switch in the command,
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q

You can suppress reboot (if needed) by using the /r switch:
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q /r

Using either of these methods there may be privileges issues, in which
case you can use "runas" administrator with the command.

John
 
G

Guest

Do you need to remove them from those machines, or are you actually trying to
prevent them from being RUN those machines, or perhaps more specifically from
being run by specific USERS who happen to use those two machines?

The reason I ask for the clarification is that because if you want to
prohibit their use at the machine or user level you can use Software
Restriction Policies and apply the policies only to the targeted machines or
users as an alternative to removing them altogether.
 
G

Guest

John John,

Both of those soultions work but the file wordpad.exe still exists in
C:\Program Files\Windows NT\Accessories\ and when I delete it WFP adds it
right back.

Andrew

John John said:
For Wordpad you can run this:

RunDll32 advpack.dll,LaunchINFSection %windir%\INF\wordpad.inf,
MSWordPadUninstall

In case your newreader breaks it the [spaces] are like so:
RunDll32[space]advpack.dll,LaunchINFSection[space]%windir%\INF\wordpad.inf,[space]MSWordPadUninstall


For Notepad I'm not sure where the inf information would be.


You should alos be able remove it with Sysocmgr:
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\ocm.txt /q

You need an answer file for it (ocm.txt):

===========================
[Components]
MSWordPad = off
===========================

The path to the answer file is specified in the u switch in the command,
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q

You can suppress reboot (if needed) by using the /r switch:
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q /r

Using either of these methods there may be privileges issues, in which
case you can use "runas" administrator with the command.

John
I need to remove notepad and wordpad from a set of Windows XP computers.
Does anyone know the issues I may run accross doing this and if there are any
simple ways of doing this. I know WFP (Windows File Protection) kicks in
when I try to delete notepad. I have not tried wordpad yet.
 
E

Elmo

AndrewB said:
John John,

Both of those soultions work but the file wordpad.exe still exists in
C:\Program Files\Windows NT\Accessories\ and when I delete it WFP adds it
right back.

Andrew

John John said:
For Wordpad you can run this:

RunDll32 advpack.dll,LaunchINFSection %windir%\INF\wordpad.inf,
MSWordPadUninstall

In case your newreader breaks it the [spaces] are like so:
RunDll32[space]advpack.dll,LaunchINFSection[space]%windir%\INF\wordpad.inf,[space]MSWordPadUninstall


For Notepad I'm not sure where the inf information would be.


You should alos be able remove it with Sysocmgr:
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\ocm.txt /q

You need an answer file for it (ocm.txt):

===========================
[Components]
MSWordPad = off
===========================

The path to the answer file is specified in the u switch in the command,
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q

You can suppress reboot (if needed) by using the /r switch:
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q /r

Using either of these methods there may be privileges issues, in which
case you can use "runas" administrator with the command.

John
I need to remove notepad and wordpad from a set of Windows XP computers.
Does anyone know the issues I may run accross doing this and if there are any
simple ways of doing this. I know WFP (Windows File Protection) kicks in
when I try to delete notepad. I have not tried wordpad yet.

Maybe if you remove Wordpad.ex_ from the I386 folder first, it won't
restore the file.
 
B

Bob I

What is the purpose of removing them? Please go to Start, Run, and type
in Edit, and press enter.
John John,

Both of those soultions work but the file wordpad.exe still exists in
C:\Program Files\Windows NT\Accessories\ and when I delete it WFP adds it
right back.

Andrew

:

For Wordpad you can run this:

RunDll32 advpack.dll,LaunchINFSection %windir%\INF\wordpad.inf,
MSWordPadUninstall

In case your newreader breaks it the [spaces] are like so:
RunDll32[space]advpack.dll,LaunchINFSection[space]%windir%\INF\wordpad.inf,[space]MSWordPadUninstall


For Notepad I'm not sure where the inf information would be.


You should alos be able remove it with Sysocmgr:
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\ocm.txt /q

You need an answer file for it (ocm.txt):

===========================
[Components]
MSWordPad = off
===========================

The path to the answer file is specified in the u switch in the command,
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q

You can suppress reboot (if needed) by using the /r switch:
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q /r

Using either of these methods there may be privileges issues, in which
case you can use "runas" administrator with the command.

John
I need to remove notepad and wordpad from a set of Windows XP computers.
Does anyone know the issues I may run accross doing this and if there are any
simple ways of doing this. I know WFP (Windows File Protection) kicks in
when I try to delete notepad. I have not tried wordpad yet.
 
J

John John

Oh geesh... you shouldn't have told him that. Now he is going to have
another thing to worry about. ;-)

John

Bob said:
What is the purpose of removing them? Please go to Start, Run, and type
in Edit, and press enter.
John John,

Both of those soultions work but the file wordpad.exe still exists in
C:\Program Files\Windows NT\Accessories\ and when I delete it WFP adds
it right back.

Andrew

:

For Wordpad you can run this:

RunDll32 advpack.dll,LaunchINFSection %windir%\INF\wordpad.inf,
MSWordPadUninstall

In case your newreader breaks it the [spaces] are like so:
RunDll32[space]advpack.dll,LaunchINFSection[space]%windir%\INF\wordpad.inf,[space]MSWordPadUninstall


For Notepad I'm not sure where the inf information would be.


You should alos be able remove it with Sysocmgr:
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\ocm.txt /q

You need an answer file for it (ocm.txt):

===========================
[Components]
MSWordPad = off
===========================

The path to the answer file is specified in the u switch in the command,
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q

You can suppress reboot (if needed) by using the /r switch:
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q /r

Using either of these methods there may be privileges issues, in
which case you can use "runas" administrator with the command.

John

AndrewB wrote:

I need to remove notepad and wordpad from a set of Windows XP
computers. Does anyone know the issues I may run accross doing this
and if there are any simple ways of doing this. I know WFP (Windows
File Protection) kicks in when I try to delete notepad. I have not
tried wordpad yet.
 
W

Wesley Vogel

Alt + F then X to close it. ;-)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
John John said:
Oh geesh... you shouldn't have told him that. Now he is going to have
another thing to worry about. ;-)

John

Bob said:
What is the purpose of removing them? Please go to Start, Run, and type
in Edit, and press enter.
John John,

Both of those soultions work but the file wordpad.exe still exists in
C:\Program Files\Windows NT\Accessories\ and when I delete it WFP adds
it right back.

Andrew

:


For Wordpad you can run this:

RunDll32 advpack.dll,LaunchINFSection %windir%\INF\wordpad.inf,
MSWordPadUninstall

In case your newreader breaks it the [spaces] are like so:
RunDll32[space]advpack.dll,LaunchINFSection[space]%windir%\INF\wordpad.inf,[
space]MSWordPadUninstall
For Notepad I'm not sure where the inf information would be.


You should alos be able remove it with Sysocmgr:
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\ocm.txt /q

You need an answer file for it (ocm.txt):

===========================
[Components]
MSWordPad = off
===========================

The path to the answer file is specified in the u switch in the
command, sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q

You can suppress reboot (if needed) by using the /r switch:
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q /r

Using either of these methods there may be privileges issues, in
which case you can use "runas" administrator with the command.

John

AndrewB wrote:

I need to remove notepad and wordpad from a set of Windows XP
computers. Does anyone know the issues I may run accross doing this
and if there are any simple ways of doing this. I know WFP (Windows
File Protection) kicks in when I try to delete notepad. I have not
tried wordpad yet.
 
B

Bob I

After he figures that out, I was going to tell him you can create text
files from the CLI with COPY CON FILENAME.TXT

John said:
Oh geesh... you shouldn't have told him that. Now he is going to have
another thing to worry about. ;-)

John

Bob said:
What is the purpose of removing them? Please go to Start, Run, and
type in Edit, and press enter.
John John,

Both of those soultions work but the file wordpad.exe still exists in
C:\Program Files\Windows NT\Accessories\ and when I delete it WFP
adds it right back.

Andrew

:


For Wordpad you can run this:

RunDll32 advpack.dll,LaunchINFSection %windir%\INF\wordpad.inf,
MSWordPadUninstall

In case your newreader breaks it the [spaces] are like so:
RunDll32[space]advpack.dll,LaunchINFSection[space]%windir%\INF\wordpad.inf,[space]MSWordPadUninstall


For Notepad I'm not sure where the inf information would be.


You should alos be able remove it with Sysocmgr:
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\ocm.txt /q

You need an answer file for it (ocm.txt):

===========================
[Components]
MSWordPad = off
===========================

The path to the answer file is specified in the u switch in the
command,
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q

You can suppress reboot (if needed) by using the /r switch:
sysocmgr /i:%windir%\inf\sysoc.inf /u:[path]\ocm.txt /q /r

Using either of these methods there may be privileges issues, in
which case you can use "runas" administrator with the command.

John

AndrewB wrote:

I need to remove notepad and wordpad from a set of Windows XP
computers. Does anyone know the issues I may run accross doing
this and if there are any simple ways of doing this. I know WFP
(Windows File Protection) kicks in when I try to delete notepad. I
have not tried wordpad yet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top